// dataIndex: 'order',
// dataIndex: 'merchantName',
// dataIndex: 'nickname',
// dataIndex: 'adjustType',
// dataIndex: 'adjustSonType',
// dataIndex: 'adjustAmount',
// dataIndex: 'needFlowAmount',
// dataIndex: 'applicant',
// dataIndex: 'applicationTime',
// dataIndex: 'firstStatus',
// dataIndex: 'firstCheckPerson',
// dataIndex: 'secondStatus',
// dataIndex: 'secondCheckPerson',
// dataIndex: 'lastUpdateTime',
// /api/history/data
import { Request, Response } from 'express';

const data: any[] = [
  {
    id: 1,
    order: 1,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 2,
    order: 2,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 3,
    order: 3,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 4,
    order: 4,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 5,
    order: 5,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 6,
    order: 6,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 15,
    order: 15,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 7,
    order: 7,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 8,
    order: 8,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 9,
    order: 9,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 10,
    order: 10,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 11,
    order: 11,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 12,
    order: 12,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 13,
    order: 13,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 22,
    order: 22,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 32,
    order: 32,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 24,
    order: 24,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 25,
    order: 25,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 26,
    order: 26,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 27,
    order: 27,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 8,
    order: 8,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 29,
    order: 29,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 20,
    order: 20,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 31,
    order: 31,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 32,
    order: 32,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
  {
    id: 33,
    order: 33,
    merchantName: '虎云聚合支付',
    merchantNumber: 18829382832,
    nickname: '1111',
    adjustType: '111',
    adjustSonType: '111-111',
    adjustAmount: '1000230.22',
    needFlowAmount: '1200394',
    applicant: 'daniel',
    applicationTime: '2018-03-20 20:11:46',
    firstStatus: Math.floor(Math.random() * 3),
    firstCheckPerson: 'daniel111',
    secondStatus: Math.floor(Math.random() * 3),
    secondCheckPerson: 'daniel2222',
    checkTime: '2018-03-20 20:11:46',
  },
];

const adjustData: { [propName: string]: any } = {
  code: 200,
  msg: '调整申请成功',
  status: 'success',
};

const FirstCheckData: { [propName: string]: any } = {
  code: 200,
  msg: '操作成功',
  status: 'success',
};

export default {
  'POST /api/adjustment/data': (req: Request, res: Response) => {
    res.send(data);
  },
  'POST /api/adjustment/adjust': (req: Request, res: Response) => {
    res.send(adjustData);
  },
  'POST /api/adjustment/firstCheck': (req: Request, res: Response) => {
    res.send(FirstCheckData);
  },
};
